//
//  UIViewController+push.m
//  Coin
//
//  Created by 杨洋 on 2018/6/9.
//  Copyright © 2018年 zzg. All rights reserved.
//

#import "UIViewController+push.h"
#import "RDVTabBarController.h"

@implementation UIViewController (push)

- (void)bh_PushViewController:(UIViewController*) viewController hiddenTabbar:(BOOL) hidden
{
    if(!self.navigationController)
        return;
//    RDVTabBarController *tabbarVC = (RDVTabBarController*)kAppDelegate.window.rootViewController;
//    [tabbarVC setTabBarHidden:YES animated:YES];
    self.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:viewController animated:YES];
    self.hidesBottomBarWhenPushed = hidden;
}
@end
